const NodePolyfillWebpackPlugin = require('node-polyfill-webpack-plugin')

module.exports = {
    devServer: {
        port:'8080',
        proxy: {
            '/user': {
                target: 'http://127.0.0.1:9000',
                changeOrigin: true,
                pathRewrite: {
                    '^/user': '/user'
                }
            },
        }
    },
    transpileDependencies:["web3"],
    configureWebpack:{
        plugins:[
            new NodePolyfillWebpackPlugin()
        ]
    }
}
